/**
 * 
 */
package com.sci.web.bean;

/**
 * @author  BaiFuyou
 * @date: Nov 18, 2011 11:40:17 AM
 */
public class IndustryStaticsEnterprise {
	private int value ;
	private String name ;
	private int code ;
	/**
	 * @return the value
	 */
	public int getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(int value) {
		this.value = value;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the code
	 */
	public int getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(int code) {
		this.code = code;
		this.setName(getIndustryName(code));
	}
	public String getIndustryName(int code){
		if (code == 1) {
			return "装备制造业";
		} else if (code == 2) {
			return "汽车行业";
		} else if (code == 3) {
			return "船舶制造业";
		} else if (code == 4) {
			return "医药行业";
		} else if (code == 5) {
			return "钢铁行业";
		} else if (code == 6) {
			return "电子信息行业";
		} else if (code == 7) {
			return "石化行业";
		} else if (code == 8) {
			return "纺织产业";
		} else if (code == 9) {
			return "轻工食品行业";
		} else if (code == 10) {
			return "有色金属行业";
		} else if (code == 11) {
			return "建材行业";
		} else if (code == 12) {
			return "光伏等新能源行业";
		}else {
			return "未知类型";
		}
	}
}
